package BrokerClass;

public class Test01 {
    public static void main(String[] args) {
ServiceClass a=new ServiceClass();
a.hello();
    }
}

interface Hello{
    public void hello();
}
class HelloImi implements Hello{

    @Override
    public void hello() {
        System.out.println("Hello World");
    }
}
class ServiceClass implements Hello{
    HelloImi a=new HelloImi();
    @Override
    public void hello() {
        k();
        a.hello();
    }
    public static void  k(){
        System.out.println("before");
    }

}
